<template>
  <div>
    <h1>这是二级路由</h1>
    <router-link to="/home/news">开启列表</router-link>|
    <!-- <router-link to="/home/message">消息</router-link>

    <router-link :to="'/home/user/'+userId">用户</router-link> -->

    <router-link :to="'/home/user/'+title">展示信息</router-link>
    
    <router-view></router-view>
  </div>
</template>

<script>

export default {
   name: "Home",
//   data(){
//     return {
//       userId:'li',
//     }
//   }
}
</script>

